// source --> http://lesplatsdenora.fr/wp-content/plugins/wp-responsive-menu/assets/js/wprmenu.js?ver=3.1.4
( function( window ) {
'use strict';
function classReg( className ) {
return new ("(^|\\s+)" + className + "(\\s+|$)");
}
// classList support for class management
// although to be fair, the api sucks because it won't accept multiple classes at once
var hasClass, addClass, removeClass;
if ( 'classList' in document.documentElement ) {
hasClass = function( elem, c ) {
return elem.classList.contains( c );
};
addClass = function( elem, c ) {
elem.classList.add( c );
};
removeClass = function( elem, c ) {
elem.classList.remove( c );
};
}
else {
hasClass = function( elem, c ) {
return classReg( c ).test( elem.className );
};
addClass = function( elem, c ) {
if ( !hasClass( elem, c ) ) {
elem.className = elem.className + ' ' + c;
}
};
removeClass = function( elem, c ) {
elem.className = elem.className.replace( classReg( c ), ' ' );
};
}
function toggleClass( elem, c ) {
var fn = hasClass( elem, c ) ? removeClass : addClass;
fn( elem, c );
}
window.classie = {
// full names
hasClass: hasClass,
addClass: addClass,
removeClass: removeClass,
toggleClass: toggleClass,
// short names
has: hasClass,
add: addClass,
remove: removeClass,
toggle: toggleClass
};
})( window );
jQuery( document ).ready( function( $ ) {
var Mgwprm = document.getElementById( 'mg-wprm-wrap' );
var wprm_menuDir = document.getElementById( 'wprMenu' );
body = document.body;
/**
----------------------------------------
*
* Body slide from one side ( left, right or top )
*
----------------------------------------
**/
if( jQuery('.wprmenu_bar').hasClass('bodyslide') )
jQuery('body').addClass('cbp-spmenu-push');
jQuery('.wprmenu_bar').click( function(e) {
if( $(e.target).hasClass('bar_logo') )
return;
classie.toggle( this, 'active' );
jQuery(this).find('div.hamburger').toggleClass('is-active');
if( jQuery(this).hasClass('active') ) {
jQuery('html').addClass('wprmenu-body-fixed');
if( wprmenu.enable_overlay == '1' ) {
jQuery('div.wprm-wrapper').find('.wprm-overlay').addClass('active');
}
}
else {
jQuery('html').removeClass('wprmenu-body-fixed');
if( wprmenu.enable_overlay == '1' ) {
jQuery('div.wprm-wrapper').find('.wprm-overlay').removeClass('active');
}
}
/**
----------------------------------------
*
* Right side body push
*
----------------------------------------
**/
if ( !jQuery(this).hasClass('normalslide') && jQuery(this).hasClass('left')) {
doc_width = jQuery(document).width() * (wprmenu.menu_width/100);
push_width = (wprmenu.push_width != '' && wprmenu.push_width < doc_width) ? wprmenu.push_width : doc_width;
classie.toggle(body, 'cbp-spmenu-push-toright');
if( jQuery('body').hasClass('cbp-spmenu-push-toright') )
jQuery('body').css('left', push_width + 'px');
else
$('body').css('left','0px');
}
/**
----------------------------------------
*
* Left side body push
*
----------------------------------------
**/
if ( !jQuery(this).hasClass('normalslide') && jQuery(this).hasClass('right')) {
doc_width = jQuery(document).width() * (wprmenu.menu_width/100);
push_width = (wprmenu.push_width != '' && wprmenu.push_width < doc_width) ? wprmenu.push_width : doc_width;
classie.toggle(body, 'cbp-spmenu-push-toleft');
if( jQuery('body').hasClass('cbp-spmenu-push-toleft') )
jQuery('body').css('left','-'+push_width+'px');
else
jQuery('body').css('left','0px');
}
classie.toggle(Mgwprm, 'cbp-spmenu-open');
close_sub_uls();
});
/**
-------------------------------------------------------------
*
* Fix the scaling issue by adding/replacing viewport metatag
*
-------------------------------------------------------------
**/
var mt = $('meta[name=viewport]');
mt = mt.length ? mt : $('').appendTo('head');
if(wprmenu.zooming == 0) {
mt.attr('content', 'user-scalable=no, width=device-width, maximum-scale=1, minimum-scale=1');
} else {
mt.attr('content', 'user-scalable=yes, width=device-width, initial-scale=1.0, minimum-scale=1');
}
/**
----------------------------------------
*
* Click on body to remove the menu
*
----------------------------------------
**/
$('body').click( function( event ) {
if ( $( '#wprmenu_bar' ).hasClass( 'active' ) ) {
$('#wprmenu_bar .wprmenu_icon').addClass('open');
}
else {
$('#wprmenu_bar .wprmenu_icon').removeClass('open');
}
});
var menu = jQuery('#mg-wprm-wrap');
var menu_ul = jQuery('#wprmenu_menu_ul'); //the menu ul
jQuery(document).mouseup(function (e) {
if ( ($(e.target).hasClass('wprmenu_bar') || $(e.target).parents('.wprmenu_bar').length == 0) &&
($(e.target).hasClass('cbp-spmenu') || $(e.target).parents('.cbp-spmenu').length == 0)) {
if(menu.is(':visible') ) {
$('.hamburger.is-active').trigger('click');
}
}
});
//add arrow element to the parent li items and chide its child uls
menu.find('ul.sub-menu').each(function() {
var sub_ul = $(this),
parent_a = sub_ul.prev('a'),
parent_li = parent_a.parent('li').first();
parent_a.addClass('wprmenu_parent_item');
parent_li.addClass('wprmenu_parent_item_li');
var expand = parent_a.before(' ').find('.wprmenu_icon_par');
sub_ul.hide();
});
//expand / collapse action (SUBLEVELS)
$('.wprmenu_icon_par').on('click',function() {
var t = $(this),
child_ul = t.parent('li').find('ul.sub-menu').first();
child_ul.slideToggle('300');
t.toggleClass('wprmenu_par_opened');
t.parent('li').first().toggleClass('wprmenu_no_border_bottom');
});
//helper - close all submenus when menu is hiding
function close_sub_uls() {
menu.find('ul.sub-menu').each(function() {
var ul = $(this),
icon = ul.parent('li').find('.wprmenu_icon_par'),
li = ul.parent('li');
if(ul.is(':visible')) ul.slideUp(300);
icon.removeClass('wprmenu_par_opened');
li.removeClass('wprmenu_no_border_bottom');
});
}
//submenu opened
function open_sub_uls() {
menu.find('ul.sub-menu').each(function() {
var ul = $(this),
icon = ul.parent('li').find('.wprmenu_icon_par'),
li = ul.parent('li');
ul.slideDown(300);
icon.removeClass('wprmenu_par_opened');
icon.addClass('wprmenu_par_opened');
});
}
if( menu.hasClass('cbp-spmenu-top') && $('body').hasClass('cbp-spmenu-push') ){
$('body').prepend(menu);
//show / hide the menu
$('#wprmenu_bar,#custom_menu_icon').on('click', function(e) {
if( $(e.target).hasClass('bar_logo') )
return;
//scroll window top
$("html, body").animate({ scrollTop: 0 }, 300);
close_sub_uls();
menu.stop(true, false).slideToggle(300);
});
}
if( wprmenu.parent_click == 'yes' ) {
$('a.wprmenu_parent_item').on('click', function(e){
e.preventDefault();
$(this).prev('.wprmenu_icon_par').trigger('click');
});
}
$('#wprmenu_menu_ul a').click(function(){
if( wprmenu.parent_click !='yes' || (wprmenu.parent_click == 'yes' && !$(this).hasClass('wprmenu_parent_item')) )
$('.hamburger.is-active').trigger('click');
});
/**
----------------------------------------
*
* Swipe Enable Function
*
----------------------------------------
**/
if( wprmenu.swipe == 'yes' ) {
jQuery('body').swipe({
excludedElements: "button, input, select, textarea, .noSwipe",
threshold: 200,
swipe:function(event, direction, distance, duration, fingerCount, fingerData) {
menu_el = $('.wprmenu_bar .hamburger, .wprmenu_bar .wpr-custom-menu');
if( direction =='left' && menu_el.hasClass('is-active') )
menu_el.trigger('click');
if( direction =='right' && !menu_el.hasClass('is-active') )
menu_el.trigger('click');
}
});
}
function toggle_sub_uls($action) {
$('#mg-wprm-wrap').find('ul.sub-menu').each(function() {
var ul = $(this),
icon = ul.parent('li').find('.wprmenu_icon_par'),
li = ul.parent('li');
if( $action == 'open' ) {
ul.slideDown(300);
icon.removeClass( wprmenu.submenu_open_icon ).addClass( wprmenu.submenu_close_icon );
}
else {
if(ul.is(':visible')) ul.slideUp(300);
icon.removeClass( wprmenu.submenu_close_icon ).addClass( wprmenu.submenu_open_icon );
li.removeClass('wprmenu_no_border_bottom');
}
});
}
});
// source --> http://lesplatsdenora.fr/wp-content/themes/food/assets/js/complete.js?ver=1
function getMobileOperatingSystem() {
var e = navigator.userAgent || navigator.vendor || window.opera;
return e.match(/iPad/i) || e.match(/iPhone/i) || e.match(/iPod/i) ? "iOS" : void 0
}
jQuery(window).ready(function() {
function e() {
return "ontouchstart" in window || navigator.MaxTouchPoints > 0 || navigator.msMaxTouchPoints > 0
}
e() && jQuery("body").addClass("touchon"), jQuery(window).width() > 1023 && (jQuery("#topmenu ul > li").not("#topmenu ul > li.mega-menu-item").hoverIntent(function() {
jQuery(this).find(".sub-menu, ul.children").not(".sub-menu .sub-menu, ul.children ul.children").removeClass("").addClass("menushow")
}, function() {
jQuery(this).find(".sub-menu, ul.children").not(".sub-menu .sub-menu, ul.children ul.children").addClass("").delay(0).queue(function(e) {
jQuery(this).removeClass("menushow"), e()
})
}), jQuery("#topmenu ul li ul li").not("#topmenu ul li.mega-menu-item ul.mega-sub-menu li").hoverIntent(function() {
jQuery(this).find(".sub-menu, ul.children").removeClass("").addClass("menushow")
}, function() {
jQuery(this).find(".sub-menu, ul.children").addClass("").delay(0).queue(function(e) {
jQuery(this).removeClass("menushow"), e()
})
}), jQuery("#topmenu ul li").not("#topmenu ul li.mega-menu-item, #topmenu ul li ul li").hover(function() {
jQuery(this).addClass("menu_hover")
}, function() {
jQuery(this).removeClass("menu_hover")
}), jQuery("#topmenu li").has("ul").addClass("zn_parent_menu"), jQuery(".zn_parent_menu > a").append('')), jQuery(".midrow_blocks_wrap").each(function(e, t) {
jQuery(this).waitForImages(function() {
jQuery(this).find(".midrow_block").matchHeight({
property: "min-height"
})
})
}), jQuery(".lay1").each(function(e, t) {
for (var r = jQuery(this).find(".hentry"), i = 0; i < r.length; i += 3) r.slice(i, i + 3).wrapAll("
");
if (jQuery(window).width() < 1200) {
var a = jQuery(this).find(".hentry").width();
jQuery(this).find(".post_image").css({
maxHeight: 66 * a / 100
})
}
}), jQuery(".lay1 .postitle a:empty").closest("h2").addClass("no_title"), jQuery(".no_title").css({
padding: "0"
}), jQuery(".lay1 h2.postitle a").each(function() {
jQuery(this).height() > 80 && jQuery(this).parent().parent().parent().addClass("lowreadmo")
}), jQuery(".lts_layout1 .listing-item h2").each(function() {
jQuery(this).outerHeight() > 76 && jQuery(this).parent().addClass("lowreadmo")
}), jQuery(window).bind("scroll", function() {
jQuery(this).scrollTop() > 800 ? jQuery(".to_top").fadeIn("slow") : jQuery(".to_top").fadeOut("fast")
}), jQuery(".to_top").click(function() {
return jQuery("html, body").animate({
scrollTop: 0
}, "slow"), !1
}), jQuery(window).width() > 480 && (jQuery(".home #zn_nivo, .home #accordion").waitForImages(function() {
var e = jQuery(".home #zn_nivo, .home #accordion").height();
jQuery(".home #zn_nivo, .home #accordion").waypoint(function() {
jQuery(".is-sticky .header").addClass("headcolor")
}, {
offset: "-" + e / 2 + "px"
}), jQuery(".home #zn_nivo, .home #accordion").waypoint(function() {
jQuery(".is-sticky .header").removeClass("headcolor")
}, {
offset: "-90px"
})
}), jQuery(".block_type2 .midrow_blocks .midrow_block").css({
opacity: "0"
}), jQuery(".block_type1 .midrow_blocks").waypoint(function() {
jQuery(this).addClass("animated bounceIn")
}, {
offset: "90%"
}), jQuery(".block_type2 .midrow_blocks .midrow_block").waypoint(function() {
jQuery(this).addClass("animated fadeInUp")
}, {
offset: "90%"
}), jQuery(".welcmblock .text_block_wrap").css({
opacity: "0"
}), jQuery(".welcmblock .text_block_wrap").waypoint(function() {
jQuery(this).addClass("animated fadeIn")
}, {
offset: "90%"
}), jQuery(".home .postsblck .center").css({
opacity: "0"
}), jQuery(".home .postsblck .center").waypoint(function() {
jQuery(this).addClass("animated fadeInUp")
}, {
offset: "85%"
}));
var t = jQuery(".ast-next > a").attr("href");
jQuery(".right_arro").attr("href", t);
var t = jQuery(".ast-prev > a").attr("href");
jQuery(".left_arro").attr("href", t), jQuery("#sidebar .widget_pages ul li a, #sidebar .widget_meta ul li a, #sidebar .widget_nav_menu ul li a, #sidebar .widget_categories ul li a, #sidebar .widget_recent_entries ul li a, #sidebar .widget_recent_comments ul li, #sidebar .widget_archive ul li, #sidebar .widget_rss ul li").prepend(' '), jQuery("#sidebar .fa-double-angle-right").css({
opacity: "0.5"
});
var r = jQuery("#simple-menu").html();
jQuery("#simple-menu").sidr({
name: "sidr-main",
source: "#topmenu",
side: "right"
}), jQuery(".sidr").prepend(""), jQuery(".pad_menutitle span").click(function() {
jQuery.sidr("close", "sidr-main")
}), jQuery(window).width() < 1023 && 0 == jQuery("#topmenu:has(ul)").length && jQuery("#simple-menu").addClass("hide_mob_menu"), jQuery(window).width() < 480 && jQuery(".nivo-control").text(""), jQuery(function() {
var e = 0,
t = jQuery(".slider-wrapper .sldimg"),
r = 100 / t.length,
i = jQuery("#astbar");
$progrssn = jQuery(".progrssn"), t.load(function() {
e += r, $progrssn.css({
bottom: e + "%"
});
var t = parseFloat(e).toFixed(0);
i.text(t + "%")
})
}), jQuery(".slider-wrapper").waitForImages(function() {
jQuery("#zn_nivo, .nivo-controlNav, #slide_acord, .nivoinner").css({
display: "block"
}), jQuery(".pbar_wrap").fadeOut()
}), jQuery("#slidera").has("#stat_img").addClass("selected_stat"), jQuery("#slidera").has(".slide_wrap").addClass("selected_slide"), jQuery(window).width() < 1025 && jQuery(".dlthref").removeAttr("href"), jQuery("#sidebar .widget .widgettitle, .related_h3, h3#comments, #reply-title").after(""), jQuery(".comm_wrap").insertAfter(".comment-form-comment"), jQuery(".comm_wrap input").placeholder(), jQuery("body").has(".error_msg").addClass("error404"), jQuery(".nav-box.ast-prev, .nav-box.ast-next").not(":has(img)").addClass("navbox-noimg");
var i = jQuery(window).height(),
a = jQuery("#footer").height(),
s = jQuery("#footer").position().top + a;
i > s && jQuery("#footer").css("margin-top", 1 + (i - s) + "px"), jQuery(".lay1.optimposts, .lay4.optimposts").each(function(e, t) {
jQuery(this).waitForImages(function() {
jQuery(this).find(".type-product").matchHeight({
property: "min-height"
})
})
}), jQuery(".lay1.optimposts .type-product").each(function(e, t) {
jQuery(window).width() >= 960 && jQuery(this).find(".button.add_to_cart_button").prependTo(jQuery(this).find(".imgwrap")), jQuery(this).find("span.price").prependTo(jQuery(this).find(".post_image "))
})
}), jQuery(window).on("load scroll", function() {
var e = jQuery(this).scrollTop(),
t = jQuery(".header").height() + jQuery(".admin-bar #wpadminbar").height() + jQuery("#customizer_topbar").height();
e ? (jQuery("body:not(.has_trans_header) .stat_bg img").css({
top: "0px"
}), jQuery("body:not(.has_trans_header) .stat_bg").css({
"background-position-y": "0px"
})) : (jQuery("body:not(.has_trans_header) .stat_bg img").css({
top: t + "px"
}), jQuery("body:not(.has_trans_header) .stat_bg").css({
"background-position-y": t + "px"
}))
});
var isSafari = !!navigator.userAgent.match(/Version\/[\d\.]+.*Safari/);
"iOS" == getMobileOperatingSystem() ? jQuery("body").addClass("is-ios") : jQuery("body").addClass("not-ios"), 1 == isSafari && jQuery("body").addClass("is_safari"), jQuery(document).ready(function() {
jQuery(".cols2").each(function(e) {
(e + 1) % 2 == 0 && jQuery(this).after('')
}), jQuery(".cols3").each(function(e) {
(e + 1) % 3 == 0 && jQuery(this).after('')
}), jQuery(".cols4").each(function(e) {
(e + 1) % 4 == 0 && jQuery(this).after('')
}), jQuery(".tstcols2").each(function(e) {
(e + 1) % 2 == 0 && jQuery(this).after('')
}), jQuery(".tstcols3").each(function(e) {
(e + 1) % 3 == 0 && jQuery(this).after('')
}), jQuery(".tstcols4").each(function(e) {
(e + 1) % 4 == 0 && jQuery(this).after('')
})
}), jQuery(document).ready(function() {jQuery(".clientbox").wrapAll(''),jQuery(".blocksbox").wrapAll(''),jQuery(".thumb").wrapAll(''),jQuery(".perfectbox").wrapAll('')
}), jQuery(document).ready(function() {
jQuery('.bxslider').show().bxSlider({
// slideWidth: 360,
minSlides: 1,
maxSlides: 1,
moveSlides: 1,
slideMargin: 0,
speed: 2000,
controls: !1,
})
}), jQuery(document).ready(function() {
jQuery(".galcarosel").bxSlider({
slideWidth: 275,
minSlides: 2,
maxSlides: 4,
slideMargin: 20,
pager: !1
}), jQuery(".skillbar").each(function() {
jQuery(this).find(".skillbar-bar").animate({
width: jQuery(this).attr("data-percent")
}, 6e3)
})
});
var pc_highestBox = 0;
jQuery(".front").each(function() {
jQuery(this).height() > pc_highestBox && (pc_highestBox = jQuery(this).height())
}), jQuery(".back").height(pc_highestBox);
jQuery(document).ready(function($){
$('.logo h1 a, .logo h2 a').html(function(){
var text= $(this).text().split(' ');
var last = text.pop();
return text.join(" ") + (text.length > 0 ? ' '+last+'' : last);
});
});
// source --> http://lesplatsdenora.fr/wp-content/themes/food/assets/js/vidbg.js?ver=1
!(function(root,factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else if(typeof exports==='object'){factory(require('jquery'));}else{factory(root.jQuery);}})(this,function($){'use strict';var PLUGIN_NAME='vidbg';var DEFAULTS={volume:1,playbackRate:1,muted:true,loop:true,autoplay:true,position:'50% 50%',overlay:false,resizing:true};var NOT_IMPLEMENTED_MSG='Not implemented';function parseOptions(str){var obj={};var delimiterIndex;var option;var prop;var val;var arr;var len;var i;arr=str.replace(/\s*:\s*/g,':').replace(/\s*,\s*/g,',').split(',');for(i=0,len=arr.length;i').css({position:'absolute','z-index':-1,top:0,left:0,bottom:0,right:0,overflow:'hidden','-webkit-background-size':'cover','-moz-background-size':'cover','-o-background-size':'cover','background-size':'cover','object-fit':'cover','background-repeat':'no-repeat','background-position':position.x+' '+position.y});if(typeof path==='object'){if(path.poster){poster=path.poster;}else{if(path.mp4){poster=path.mp4;}else if(path.webm){poster=path.webm;}}}
$wrapper.css('background-image','url('+poster+')');if($element.css('position')==='static'){$element.css('position','relative');}
$element.css('z-index','1');if($element.is("body")){$wrapper.css({position:'fixed'});}
$element.prepend($wrapper);if(typeof path==='object'){if(path.mp4){sources+='